import request from '@/utils/request'

// 查询学研项目赞助列表
export function listSponsor(query) {
  return request({
    url: '/biz/sponsor/list',
    method: 'get',
    params: query
  })
}

// 查询学研项目赞助详细
export function getSponsor(id) {
  return request({
    url: '/biz/sponsor/' + id,
    method: 'get'
  })
}

// 新增学研项目赞助
export function addSponsor(data) {
  return request({
    url: '/biz/sponsor',
    method: 'post',
    data: data
  })
}

// 修改学研项目赞助
export function updateSponsor(data) {
  return request({
    url: '/biz/sponsor',
    method: 'put',
    data: data
  })
}

// 删除学研项目赞助
export function delSponsor(id) {
  return request({
    url: '/biz/sponsor/' + id,
    method: 'delete'
  })
}

// 启用禁用学研项目赞助
export function changeStatus(data) {
  return request({
    url: '/biz/sponsor/changeStatus',
    method: 'put',
    data: data
  })
}